<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/11/21
 * Time: 22:48
 */
namespace phpfuntions\mp_output;
class myphp_output
{

    /**
     * flush 函数：刷新输出缓冲
     * @access public
     * @return
     */
    public static function flush () {
        return flush( );

    }

    /**
     * ob_clean 函数：清空输出缓冲
     * @access public
     * @return
     */
    public static function ob_clean () {
        return ob_clean( );

    }

    /**
     * ob_end_clean 函数：清空缓冲区并且关闭正在进行的输出缓冲
     * @access public
     * @return
     */
    public static function ob_end_clean () {
        return ob_end_clean( );

    }

    /**
     * ob_end_flush 函数：发送缓冲区数据并且关闭缓冲区
     * @access public
     * @return
     */
    public static function ob_end_flush () {
        return ob_end_flush( );

    }

    /**
     * ob_flush 函数：发送缓冲区数据
     * @access public
     * @return
     */
    public static function ob_flush () {
        return ob_flush( );

    }

    /**
     * ob_get_clean 函数：获取缓冲区内容并且结束缓冲区
     * @access public
     * @return
     */
    public static function ob_get_clean () {
        return ob_get_clean( );

    }

    /**
     * ob_get_contents 函数：获取缓冲区数据　
     * @access public
     * @return
     */
    public static function ob_get_contents () {
        return ob_get_contents( );

    }

    /**
     * ob_get_flush 函数：刷新缓冲区数据，返回数据并且关闭缓冲区　
     * @access public
     * @return
     */
    public static function ob_get_flush () {
        return ob_get_flush( );

    }

    /**
     * ob_get_length 函数：获取缓冲区长度
     * @access public
     * @return
     */
    public static function ob_get_length () {
        return ob_get_length( );

    }

    /**
     * ob_get_level 函数：获取缓冲区等级
     * @access public
     * @return
     */
    public static function ob_get_level () {
        return ob_get_level( );

    }

    /**
     * ob_get_status 函数：获取缓冲区状态
     * @access public
     * @return
     */
    public static function ob_get_status ($full_status = null) {
        return ob_get_status($full_status );

    }

    /**
     * ob_gzhandler 函数：供ob_start使用的回调 函数用来压缩输出缓冲区　
     * @access public
     * @return
     */
    public static function ob_gzhandler ($buffer, $mode) {
        return ob_gzhandler( $buffer, $mode);

    }

    /**
     * ob_implicit_flush 函数：打开或者关闭原本固有的输出缓冲区　
     * @access public
     * @return
     */
    public static function ob_implicit_flush ($flag = null) {
        return ob_implicit_flush($flag  );

    }

    /**
     * ob_list_handlers 函数：列出所有使用的输出句柄　
     * @access public
     * @return
     */
    public static function ob_list_handlers () {
        return ob_list_handlers( );

    }

    /**
     * ob_start 函数：打开缓冲区　　
     * @access public
     * @return
     */
    public static function ob_start ($output_callback = null, $chunk_size = null, $erase = null) {
        return ob_start( $output_callback , $chunk_size , $erase );

    }

    /**
     * output_add_rewrite_var 函数：添加URL rewrite的值　
     * @access public
     * @return
     */
    public static function output_add_rewrite_var ($name, $value) {
        return output_add_rewrite_var($name, $value );

    }

    /**
     * output_reset_rewrite_vars 函数：重置URL rewrite的值　
     * @access public
     * @return
     */
    public static function output_reset_rewrite_vars () {
        return output_reset_rewrite_vars( );

    }
}